<template>
  <div class="container">
    <!-- 一楼：轮播 -->
    <div class="index-f1">
      <el-carousel height="650px" indicator-position="inside">
        <el-carousel-item v-for="(item, i) in list" :key="i">
          <img :src="item.src" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
    <!-- 二楼：视频 -->
    <div class="index-f2">
      <video
        src="img/f2/f-gu2.mp4"
        controls
        width="300"
        height="578"
        style="background: black"
        poster="img/f2/gu.jpg"
      ></video>

      <video
        src="img/f2/wang.mp4"
        controls
        width="300"
        height="578"
        style="background: black"
        poster="img/f2/wang.jpg"
      ></video>

      <video
        src="img/f2/guan.mp4"
        controls
        width="300"
        height="578"
        style="background: black"
        poster="img/f2/guan.jpg"
      ></video>

      <video
        src="img/f2/tps.mp4"
        controls
        width="300"
        height="578"
        style="background: black"
        poster="img/f2/tang.jpg"
      ></video>
    </div>

    <!-- 三楼：产品+二维码 -->
    <div class="index-f3">
      <div class="product">
        <!-- 产品1 -->
        <div class="p1">
          <img src="img/f3/f3-1.jpg" alt="" />
          <div class="title">A-SHOCK FIBER科技</div>
          <div class="xiang">轻骑兵6代篮球鞋</div>
          <button>
            <a href="https://www.anta.com/list/?k=%E8%BD%BB%E9%AA%91%E5%85%B5"
              >立刻选购</a
            >
          </button>
        </div>
        <!-- 产品2 -->
        <div class="p2">
          <img src="img/f3/f3-2.jpg" alt="" />
          <div class="title">打造厚底运动风潮</div>
          <div class="xiang">MIX裂变休闲鞋</div>
          <button>
            <a href="https://www.anta.com/list/?k=MIX">立刻选购</a>
          </button>
        </div>
        <!-- 二维码 -->
        <div class="two">
          <img src="img/f3/f3-3.jpg" alt="" />
        </div>
      </div>
    </div>

    <!--四楼：轮播产品图 -->
    <div class="index-f4">
      <h3>猜你喜欢</h3>
      <button>
        <a href="https://www.anta.com/list/?k=%E6%9C%8D">即刻选购</a>
      </button>
    </div>
    <!-- 轮播 -->
    <div>
      <swiper class="swiper" :options="swiperOption" :free-mode="true">
        <swiper-slide
          ><a href="https://www.anta.com/anta-152140204-2.html"
            ><img src="img/f4/f4-1.jpg" style="width: 304px" alt="" /></a
          ><span>春晚同款冠军系列男子滑雪服套装</span></swiper-slide
        >
        <swiper-slide
          ><a href="https://www.anta.com/anta-162140202-1.html"
            ><img src="img/f4/f4-2.jpg" style="width: 304px" alt="" /></a
          ><span>春晚同款冠军系列女滑雪服套装</span></swiper-slide
        >
        <swiper-slide
          ><a href="https://www.anta.com/anta-152140922-1.html"
            ><img src="img/f4/f4-3.jpg" style="width: 304px" alt="" /></a
          ><span>春晚同款星河涌动男子羽绒服</span></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-4.jpg" style="width: 304px" alt="" /><span
            >春晚同款星河涌动女子羽绒服</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-5.jpg" style="width: 304px" alt="" /><span
            >全天候女针织运动上衣</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-6.jpg" style="width: 304px" alt="" /><span
            >全天候男针织运动上衣</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-7.jpg" style="width: 304px" alt="" /><span
            >全天候女梭织运动上衣</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-8.jpg" style="width: 304px" alt="" /><span
            >全天候防风透湿男两件套</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-9.jpg" style="width: 304px" alt="" /><span
            >全天候动型科技男连帽卫衣</span
          ></swiper-slide
        >
        <swiper-slide
          ><img src="img/f4/f4-10.jpg" style="width: 304px" alt="" /><span
            >全天候动型科技女套头卫衣</span
          ></swiper-slide
        >

        <div class="swiper-button-prev" slot="button-prev"></div>
        <div class="swiper-button-next" slot="button-next"></div>
        <div class="swiper-pagination" slot="pagination"></div>
      </swiper>
    </div>

    <!-- 底部框--footer -->

    <!-- 返回顶部 -->
    <el-backtop target=".container">
      <div class="toTop">Top</div>
    </el-backtop>

    <red />
  </div>
</template>

<script>
import Red from "../components/red.vue";
import { swiper, swiperSlide } from "vue-awesome-swiper";
export default {
  components: {
    swiper,
    swiperSlide,

    Red,
  },
  data() {
    return {
      list: [
        {
          src: " http://anta-cn-web.obs.myhuaweicloud.com/anta-cn-web/descente/2022/01/06/82269cd278fece089c26a76e96f1294f.png",
        },
        {
          src: " http://anta-cn-web.obs.myhuaweicloud.com/anta-cn-web/descente/2022/01/23/6beb894a5c5a816e619bcabc63ca85c9.png ",
        },
        {
          src: "http://anta-cn-web.obs.myhuaweicloud.com/anta-cn-web/descente/2022/01/06/d45f5bbcd6568385de33597be9343c05.png ",
        },
        { src: "img/f1/f1-4.jpg" },
        {
          src: " http://anta-cn-web.obs.myhuaweicloud.com/anta-cn-web/descente/2022/01/06/02a9fe72e5d769a53027a0785c4e2921.jpg ",
        },
      ],
      swiperOption: {
        slidesPerView: 3,
        spaceBetween: 30,

        pagination: {
          el: ".swiper-pagination",
          type: "progressbar",
        },
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
      },
    };
  },
};
</script>

<style scoped>
.container {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
}
.toTop {
  padding: 10px;
  box-shadow: 0px 0px 5px black;
}

.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

* {
  margin: 0;
  padding: 0;
}
/* 一楼样式 */
.index-f1 img {
  width: 100vw;
  height: 659px;
}

/* 二楼样式/ */
.index-f2 {
  background-image: url("/public/img/f2/bc.jpg");
  background-size: 100vw 724px;
  background-repeat: no-repeat;

  padding-top: 40px;
  padding-bottom: 60px;
  padding-left: 20%;
}

/* 三楼样式 */

/* 产品1样式 */
.product {
  padding-left: 20%;
}

.p1 {
  display: inline-block;
}
.p1 img {
  width: 380px;
  height: 425px;
  margin: 0 30px 0 0;
}
.p1 > .title {
  font-size: 33px;
  font-family: "微软雅黑,Arial,sans-serif";
  font-weight: 500;
  margin: 10px 0;
  user-select: none;
}

.p1 > .xiang {
  font-size: 25px;
  color: gray;
  user-select: none;
  margin: 5px;
}
.p1 button {
  font-size: 25px;
  background-color: black;
  margin-bottom: 200px;
  padding: 10px 35px;
}
.p1 button > a {
  color: white;
  text-decoration: none;
  font-weight: 100;
}
/* 产品2样式 */

.p2 {
  display: inline-block;
}

.p2 img {
  width: 380px;
  height: 425px;
  margin-right: 30px;
}

.p2 > .title {
  font-size: 33px;
  font-family: "微软雅黑";
  font-weight: 500;
  margin: 10px 0;
  user-select: none;
}
.p2 > .xiang {
  font-size: 25px;
  color: gray;
  user-select: none;
  margin: 5px 0;
}

.p2 button {
  font-size: 25px;
  background-color: black;
  /* margin-left: 200px; */
  /* margin-bottom: 200px; */
  padding: 10px 35px;
}
.p2 button > a {
  color: white;
  text-decoration: none;
  font-weight: 100;
}

/* 二维码图片样式设置 */
.two {
  display: inline-block;
  width: 380px;
  height: 450px;
  margin: 10px;
}

/* 四楼样式 */
.index-f4 > h3 {
  font-size: 50px;
  color: #333;
  font-family: "宋体";
  text-align: center;
  /* letter-spacing: 2px; */
}

.index-f4 button {
  display: block;
  margin: 20px auto 40px auto;
  padding: 10px 25px;
  background-color: #333;
}

.index-f4 button a {
  color: white;
  font-size: 15px;
  text-decoration: none;
}

.swiper-button-prev,
.swiper-button-next {
  color: lightgray;
}

.swiper-pagination {
  padding: 2px;
}

.swiper-slide {
  /* width: 20vw; */
  height: 304px;
  background-color: red;
  margin-left: 15px;
  margin-top: 50px;
  margin-bottom: 100px;
  width: 304px !important;
}

.swiper span {
  display: inline-block;

  /* margin:20px 130px 50px 100px; */
}
::-webkit-scrollbar {
  width: 0 !important;
  height: 0;
}
</style>
